package com.itliang.mapper.hardware;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itliang.core.model.dto.equipment.EquipmentDataQueryRequest;
import com.itliang.core.model.entity.equipment.EquipmentData;
import com.itliang.core.model.entity.equipment.Statistics;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liangzhuoyuan
 * @description 针对表【equipment_data(数据表)】的数据库操作Mapper
 */
public interface EquipmentDataMapper extends BaseMapper<EquipmentData> {

    Page<EquipmentData> listEquipmentDataByPage(Page page, @Param("equipmentDataQueryRequest") EquipmentDataQueryRequest equipmentDataQueryRequest);

    List<EquipmentData> listEquipmentDataByDataType(Integer dataType);

    Statistics getStatisticsData(@Param("statistics") Statistics statistics);
}




